-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TACACS+] Add plugin support to bash. #8660
[TACACS+] Add plugin support to bash. #8660
Conversation
Just a draft PR, need apply the diff file to bash source code and pass build. |
From b4962d09ab2d41a5e993bf3d8e4ebe32114999dc Mon Sep 17 00:00:00 2001 | ||
From: liuh-80 <58683130+liuh-80@users.noreply.github.com> | ||
Date: Fri, 3 Sep 2021 14:05:36 +0800 | ||
Subject: [PATCH] Add plugin support to bash. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After check with liuxin about the license issue, will submit PR to bash.
…h-80/sonic-buildimage into dev/liuh/bash_plugin_support # Conflicts: # src/bash/Makefile
…h-80/sonic-buildimage into dev/liuh/bash_plugin_support
…h-80/sonic-buildimage into dev/liuh/bash_plugin_support
…h-80/sonic-buildimage into dev/liuh/bash_plugin_support
rules/bash.mk
Outdated
# Bash complete release-number. This image contains all 4.3 fixes up to patch '42'. | ||
BASH_VERSION_FULL = $(BASH_VERSION_MAJOR)-14 | ||
# Bash major release-number corresponding to Debian-10 (Buster) | ||
BASH_VERSION_MAJOR = 5.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bullseye using 5.1-2+b3 version: https://packages.debian.org/stable/shells/bash
will change to this version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
This pull request add plugin support library to bash.
And we will create a TACACS+ plugin for bash in an other PR, which will bring per command authorization feature to bash.
Why I did it
To support TACACS per command authorization, we check user command before execute it.
How I did it
Add plugin support to bash.
How to verify it
UT with CUnit under bash project cover all new code in plugin.c.
Also pass all current UT.
Which release branch to backport (provide reason below if selected)
N/A
Description for the changelog
Add plugin support to bash.
A picture of a cute animal (not mandatory but encouraged)